﻿using PersonaLibrary.ViewModel.ExcelViewModel;

namespace PersonaLibrary.Commands.Excel
{
    internal static class Commands
    {
        private static BirthdayExportCommand birthdayExportCommand;
        private static ExportAllCommand exportAllCommand;
        private static SimplyCommand<ExportCutVersion> exportCut;
        private static SimplyCommand<ImportNote> importNote;
        private static SimplyCommand<ImportAll> importAll;
        private static ExportCollectionCommand exportCollectionCommand;
        private static ExportCutCollection exportCutCollection;

        public static SimplyCommand<ImportAll> ImportAll
        {
            get
            {
                if(importAll == null) importAll = new SimplyCommand<ImportAll>();
                return importAll;
            }
        }

        public static ExportCutCollection ExportCutCollection
        {
            get
            {
                if(exportCutCollection == null) exportCutCollection = new ExportCutCollection();
                return exportCutCollection;
            }
        }

        public static ExportCollectionCommand ExportCollectionCommand
        {
            get
            {
                if(exportCollectionCommand == null) exportCollectionCommand = new ExportCollectionCommand();
                return exportCollectionCommand;
            }
        }

        public static SimplyCommand<ImportNote> ImportNote
        {
            get
            {
                if(importNote == null) importNote = new SimplyCommand<ImportNote>();
                return importNote;
            }
        }

        public static SimplyCommand<ExportCutVersion> ExportCutVersion
        {
            get
            {
                if(exportCut == null) exportCut = new SimplyCommand<ExportCutVersion>();
                return exportCut;
            }
        }

        public static ExportAllCommand ExportAllCommand
        {
            get
            {
                if(exportAllCommand == null) exportAllCommand = new ExportAllCommand();
                return exportAllCommand;
            }
        }

        public static BirthdayExportCommand BirthdayExportCommand
        {
            get
            {
                if (birthdayExportCommand == null) birthdayExportCommand = new BirthdayExportCommand();
                return birthdayExportCommand;
            }
        }
    }
}
